From: Isaku Yamahata Date: Thu, 2 Oct 2008 08:27:57 +0000 (+0900) Subject: [IA64] xc restore: fix domain restore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14103 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0072510b97cafd1b73c4542f7f955c3e0f8438ad;p=xen.git [IA64] xc restore: fix domain restore. Fix domain restore of version one format. Signed-off-by: Isaku Yamahata --- diff --git a/tools/libxc/ia64/xc_ia64_linux_restore.c b/tools/libxc/ia64/xc_ia64_linux_restore.c index 4a18146c7b..290c8e726f 100644 --- a/tools/libxc/ia64/xc_ia64_linux_restore.c +++ b/tools/libxc/ia64/xc_ia64_linux_restore.c @@ -636,7 +636,7 @@ xc_domain_restore(int xc_handle, int io_fd, uint32_t dom, memset(buffer, 0, sizeof(buffer)); memmap_info = (xen_ia64_memmap_info_t *)buffer; memdesc = (efi_memory_desc_t*)&memmap_info->memdesc[0]; - memmap_info->efi_memmap_size = sizeof(*memmap_info) + sizeof(*memdesc); + memmap_info->efi_memmap_size = sizeof(*memdesc); memmap_info->efi_memdesc_size = sizeof(*memdesc); memmap_info->efi_memdesc_version = EFI_MEMORY_DESCRIPTOR_VERSION;